package com.leng.admin.controller;


import com.leng.common.core.ApiResult;
import com.leng.logger.admin.domain.AdminLogininfor;
import com.leng.logger.admin.service.IAdminLogininforService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class AdminLogininforController {

    @Autowired
    private IAdminLogininforService adminLogininforService ;

    @GetMapping("list")
    public ApiResult index(){
        List<AdminLogininfor> list = adminLogininforService.list();
        return ApiResult.success(list);

    }
}
